<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="~{layout/_layout.html}">
<div layout:fragment="content">
    <section class="Hui-article-box">
        <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
            <div class="Hui-tabNav-wp">
                <ul id="min_title_list" class="acrossTab cl">
                    <li class="active">
                        <span title="我的桌面" data-href="welcome.html">我的桌面</span>
                        <em></em></li>
                </ul>
            </div>
            <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S"
                                                      href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a
                    id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i
                    class="Hui-iconfont">&#xe6d7;</i></a>
            </div>
        </div>
        <div id="iframe_box" class="Hui-article">
            <div class="show_iframe">
                <div style="display:none" class="loading"></div>
                <div class="page-container">
                    <p class="f-20 text-success">欢迎 <span th:text="${userNameStr}"/> 进入后台管理系统</p>


                    <!--<div id="getlastweekorderstatistics">-->
                        <!--<div class="loading"></div>-->
                    <!--</div>-->
                    <!--<div id="getorderstatistics">-->
                        <!--<div class="loading"></div>-->
                    <!--</div>-->
                    <!--<div id="gettotaluserstatistics">-->
                        <!--<div class="loading"></div>-->
                    <!--</div>-->


                    <!--<form id="getorderdaystatistics_form">-->
                        <!--<input type="hidden" name="page_index" value="1">-->
                        <!--<input type="hidden" name="page_size" value="10">-->
                        <!--<div id="getorderdaystatistics">-->
                            <!--<div class="loading"></div>-->
                        <!--</div>-->
                    <!--</form>-->


                    <!--<form id="getbusinessconsumestatistics_form">-->
                        <!--<input type="hidden" name="page_index" value="1">-->
                        <!--<input type="hidden" name="page_size" value="10">-->
                        <!--<div id="getbusinessconsumestatistics">-->
                            <!--<div class="loading"></div>-->
                        <!--</div>-->
                    <!--</form>-->


                    <!--<form id="getdayregisterandopenandamountstatistics_form">-->
                        <!--<input type="hidden" name="page_index" value="1">-->
                        <!--<input type="hidden" name="page_size" value="10">-->
                        <!--<div id="getdayregisterandopenandamountstatistics">-->
                            <!--<div class="loading"></div>-->
                        <!--</div>-->
                    <!--</form>-->


                    <!--<form id="getgoodssalesvolumestatistics_form">-->
                        <!--<input type="hidden" name="page_index" value="1">-->
                        <!--<input type="hidden" name="page_size" value="10">-->
                        <!--<div id="getgoodssalesvolumestatistics">-->
                            <!--<div class="loading"></div>-->
                        <!--</div>-->
                    <!--</form>-->


                    <!--<form id="getuserservicememberstatistics_form">-->
                        <!--<input type="hidden" name="page_index" value="1">-->
                        <!--<input type="hidden" name="page_size" value="10">-->
                        <!--<div id="getuserservicememberstatistics">-->
                            <!--<div class="loading"></div>-->
                        <!--</div>-->
                    <!--</form>-->


                </div>

            </div>
        </div>
    </section>
    <script>
        $(function () {
            // ajaxHtml("${basePath}/main/getlastweekorderstatistics","","getlastweekorderstatistics");
            // ajaxHtml("${basePath}/main/getorderstatistics","","getorderstatistics");
            // ajaxHtml("${basePath}/main/gettotaluserstatistics","","gettotaluserstatistics");
            //
            // loadpage(1,"getbusinessconsumestatistics");
            // loadpage(1,"getdayregisterandopenandamountstatistics");
            // loadpage(1,"getgoodssalesvolumestatistics");
            // loadpage(1,"getorderdaystatistics");
            // loadpage(1,"getuserservicememberstatistics");
        });

        function loadpage(index, name) {
            $("#" + name + "_form").find("[name=page_index]").val(index);
            ajaxHtml("${basePath}/main/" + name, $("#" + name + "_form").serialize(), name);
        }


        function ajaxHtml(url, data, showDiv) {
            $.post(url, data, function (d) {
                $("#" + showDiv).html(d);
                try {
                    $("#" + showDiv)[0].innerHTML = d;
                } catch (e) {
                    e.prototype;
                }
            });
        }
    </script>
</div>